package com.clz.appdesign.mvvm;

import android.widget.ImageView;

import com.bumptech.glide.Glide;

/**
 * @author chenliangzhi
 * @date 2018/9/20
 * @describe
 */

public class BindingAdapter {
    @android.databinding.BindingAdapter("url")
    public static void setImageUrl(ImageView image, String url){
        Glide.with(image.getContext())
                .load(url)
                .into(image);
    }

}
